import Vue from "vue";
import Router from "vue-router";
import login from "../views/login/login.vue"
import register from "../views/login/register.vue"
import product from "../views/product/index.vue"
import productDetail from "../views/product/detail.vue"
import individual from "../views/user/individual.vue"
import chat from "../views/chatgpt/chat.vue"

Vue.use(Router);
export default new Router({
    routes: [
        {
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/user/individual',
            name: 'individual',
            component: individual
        },
        {
            path: '/product',
            name: 'product',
            component: product
        },
        {
            path: '/product/detail/:id',
            name: 'productDetail',
            component: productDetail
        },
        {
            path: '/chat',
            name: 'chat',
            component: chat
        }
    ]
});
